﻿@using BlogModel
@model BlogModel.User

@{
    ViewBag.Title = Model.Name;
}

<div id="SideBar">
    <h2>@Model.Name</h2>
    <h4>Bloggar om</h4>
    <p>@Model.BlogsAbout</p>

    <h4>Presentation</h4>
    <p>@Model.Presentation</p>



    @Html.ActionLink("Tillbaka till lista med bloggare", "Index", new { userId = @Model.UserId })

</div>

@*@foreach (var post in Model.Post)
    {
        <br />
        <br />
        <p>@post.CreationDate</p>
        <p>@post.Text</p>
        <p>@comment.Name</p>
    }*@

<ul>
    @foreach (var post in Model.Blog)
    {

        @Html.RenderPartial("_Post", post)

    }
</ul>
